import { request } from '@inbiz/utils';

export async function uploadImage(params: any, data) {
  return request(
    `/inbiz/api/services/front/engines/v${InbizConfig.API_VERSION}/common/uploadImageByStaticFile`,
    {
      method: 'POST',
      requestType: 'form',
      data,
      params,
    },
  );
}


export async function menuTreeList(params: any) {
  return request(
    `/inbiz/api/services/front/engines/v${InbizConfig.API_VERSION}/menu/treeList`,
    {
      params,
    },
  );
}